export default {
  data() {
    return {
      num: 123,
      xxx: 0,
      interval: ''
    }
  },
  methods: {
    setNum() {
      console.log(this.num)
    }
  },
  created() {
    this.interval = setInterval(() => {
      this.xxx++
      console.log(this.xxx)
    }, 1000)
    console.log('mixin created:', this.num)
  },
  beforeDestroy() {
    clearInterval(this.interval)
  }
}
